import { Blocks, Arduino } from 'blockly/core';

import * as UtilsFSBlocks from './blocks/utils';
import * as FSBlocks from './blocks/fs';

import * as UtilsFSGenerators from './generators/utils';
import * as FSGenerators from './generators/fs';

import './language/loader';
import './css/lib.css';

// 载入图形化模块外观定义文件
Object.assign(
    Blocks,
    UtilsFSBlocks,
    FSBlocks
);

// 载入图形化模块代码生成定义文件
Object.assign(
    Arduino.forBlock,
    UtilsFSGenerators,
    FSGenerators
);